package Java.BlackHorse.Thread.Thread1;

public class ThreadDemo1 {
    /*
    * 多线程的第一种启动方式
    * */
    public static void main(String[] args) {
        MyThread1 t1 = new MyThread1();
        MyThread1 t2 = new MyThread1();
        t1.setName("Thread1");
        t2.setName("Thread2");
        t1.start();
        t2.start();
    }
}
